package com.xuecheng.content.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author 摆渡人
 * @description
 * @date 2023/7/14 19:58
 */
@Data
public class AddCourseTeacherDto {

    private Long id;

    @NotNull(message = "courseId is null")
    private Long courseId;

    @NotBlank(message = "请输入教师姓名")
    private String teacherName;

    @NotBlank(message = "请输入教师职位")
    private String position;

    private String introduction;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;

    @ApiModelProperty("照片")
    private String photograph;
}
